import request from '@/utils/request'

// 查询每日基础数据列表
export function listBase(query) {
  return request({
    url: '/stock/base/list',
    method: 'get',
    params: query
  })
}

// 查询每日基础数据详细
export function getBase(recordId) {
  return request({
    url: '/stock/base/' + recordId,
    method: 'get'
  })
}

// 新增每日基础数据
export function addBase(data) {
  return request({
    url: '/stock/base',
    method: 'post',
    data: data
  })
}

// 修改每日基础数据
export function updateBase(data) {
  return request({
    url: '/stock/base',
    method: 'put',
    data: data
  })
}

// 删除每日基础数据
export function delBase(recordId) {
  return request({
    url: '/stock/base/' + recordId,
    method: 'delete'
  })
}
